package samber

import (
	"fmt"
	"github.com/samber/lo"
)

// GroupBy 分组 意思就是 GroupBy
func GroupBy() {
	list := []int{0, 1, 2, 3, 4, 5}
	result := lo.GroupBy(list, func(i int) int {
		return i % 3
	})
	fmt.Printf("%v\n", result)
}
